Decision Server REST API - ruleapps/{ruleappname}/{ruleappversion}/{rulesetname}/{rulesetversion}/signature Resource - GET Method

Returns the signature of a ruleset, identified by its name and version number and by the name and version number of its RuleApp. If the repository does not contain such a ruleset, the response body is empty and the HTTP status 204 is returned.

Sample Method Invocation

GET /api/v1/ruleapps/{ruleappname}/{ruleappversion}/{rulesetname}/{rulesetversion}/signature

Parameters

None.

Request Content

None.

Response Content

The default content-type is application/xml.

MIME Type: application/json

(Schema to go here)
+ View Example
[ {
  "name" : "{Name of this parameter}",
  "kind" : "JAVA",
  "direction" : "INOUT",
  "type" : "{Type of this parameter}",
  "xmlType" : "{XML type of this parameter, if any}"
} ]

MIME Type: application/xml

+ View Schema
<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="" version="1.0">

  <xs:element name="parameter" type="rulesetParameter"/>

  <xs:element name="signature" type="signature"/>

  <xs:complexType name="signature">
    <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" ref="parameter"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="rulesetParameter">
    <xs:sequence>
      <xs:element minOccurs="0" name="direction" type="direction"/>
      <xs:element minOccurs="0" name="kind" type="kind"/>
      <xs:element minOccurs="0" name="name" type="xs:string"/>
      <xs:element minOccurs="0" name="type" type="xs:string"/>
      <xs:element minOccurs="0" name="xmlType" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>

  <xs:simpleType name="direction">
    <xs:restriction base="xs:string">
      <xs:enumeration value="IN"/>
      <xs:enumeration value="INOUT"/>
      <xs:enumeration value="OUT"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="kind">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Java"/>
      <xs:enumeration value="XML"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>
+ View Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<signature>
    <parameter>
        <direction>INOUT</direction>
        <kind>Java</kind>
        <name>{Name of this parameter}</name>
        <type>{Type of this parameter}</type>
        <xmlType>{XML type of this parameter, if any}</xmlType>
    </parameter>
</signature>

Status Codes

The method returns one of the following status codes:
Code Description
200 Successful completion.
204 Successful completion, no content available.
400 The parameters are not valid or they are missing.
401 The caller is not authorized for this request.
403 The caller is not allowed to complete this request.
404 The resource does not exist.
406 The requested content type or content encoding is not supported.
500 A severe problem has occurred, programmer's details are provided.

Available Since

8.0.1.0

Parent Topic: ruleapps/{ruleappname}/{ruleappversion}/{rulesetname}/{rulesetversion}/signature Resource